from django.urls import path, include
from rest_framework.routers import DefaultRouter

from .views import *

ro = DefaultRouter()

ro.register(r'test2', Test2)

urlpatterns = [
    path('', include(ro.urls)),
    path('register/', RegisterView.as_view(), name='user-register'),
    path('login/', LoginView.as_view(), name='user-login'),
    path('test/', Test.as_view(), name='user-test'),  # 仅用于测试
]
